Need script to convert all "legacy mailboxes" to "user mailboxes" on Exchange 2007 server.
After moving mailboxes from Exchnage 2003 to 2007; I have a large amount of mailboxes that are "legacy" mailboxes instead of as "user" mailboxes. I am able to convert one mailbox at a time, but that is to time consuming. I have about 100 mailboxes to convert. Is there any way to convert all legacy mailboxes at the same time?
August 18th, 2009 5:02pm

How did you move those? If using Exchange 2003 management tools then it doesn't apply themandatoryproperties of Exchange 2007 and you need to run Set-Mailbox UserName -ApplyMandatoryProperties but if you moved using EMC/EMS of 2007 then you just need to convert those. So let us know how you moved the mailbox and based on it we need to construct cmdlet or script... BTW, which cmdlet you used to convert single mailbox at a time?Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 5:12pm

They where moved using Exchange management tools. I use the command "Set-Mailbox -id mailboxname -ApplyMandatoryProperties" to convert individual mailboxes
August 18th, 2009 5:20pm

Get-Mailbox -ResultSize Unlimited-Server "E2k7ServerName"| Where{$_.RecipientTypeDetails -eq "LegacyMailbox"} |Set-Mailbox -ApplyMandatoryPropertiesAmit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 5:25pm

it worked after i added "-ResultSize Unlimited"
August 18th, 2009 5:37pm

Or, for a faster select, use a built in filter:Get-Mailbox -ResultSize unlimited -Filter {RecipientTypeDetails -eq "LegacyMailbox"} | Set-Mailbox -ApplyMandatoryProperties Karl
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 5:39pm

Or, for a faster select, use a built in filter:Get-Mailbox -ResultSize unlimited -Filter {RecipientTypeDetails -eq "LegacyMailbox"} | Set-Mailbox -ApplyMandatoryProperties Karl Yes, correct server side filtering is much faster compare to client side using where clauses... :) Thanks for the tip Karl...Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
August 18th, 2009 5:45pm

Welcome, Amit - Of course, I know YOU already know that ;)I found out how great server side filtering is when I was doing this: Get-Recipient -resultsize unlimited |where {$_.emailaddresses -eq 'karlmitschke@state.gov'} - That returned in "only" 50 seconds(And, you still need the -Resultsize unlimited as it scans all mailboxes before doing anything) Get-Recipient -Filter{EmailAddresses -eq 'karlmitschke@state.gov'} returns the data in less than 1 second :)Karl
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 5:52pm

That's really interesting analysis! Looks like I have to be morefamiliarwith server side filtering... :) Thanks,Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
August 18th, 2009 6:10pm

Yes, since finding out about Filters, I check for a filter before doing anything else!Evan Dodds has a great blog post on the filters for Exchange 2007 RTM here: http://blogs.technet.com/evand/archive/2007/02/19/filterable-properties-in-exchange-2007-rtm.aspxI'm not sure of any changes in SP1Here's a tip on combining filters: $Mailboxes = Get-CASMailbox -Filter{(HasActiveSyncDevicePartnership -eq $true) -AND (name -notlike "cas*")}Gets all our mailboxes that are active sync enabled, except the test mailboxesKarl
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2009 6:29pm

Yeh, its good reference and here is the one for SP1. Looks no much difference... Filterable Properties for the -Filter Parameter in Exchange 2007 SP1 http://technet.microsoft.com/en-us/library/bb738155.aspxAmit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
August 18th, 2009 6:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics